package com.liao.badminton.vo;

import com.liao.badminton.code.BaseField;
import io.swagger.annotations.ApiModelProperty;
import java.lang.String;
import java.util.Date;
import java.util.List;
import lombok.Data;
import com.liao.badminton.entity.JoinGroupApply;
/**
* @author liaocheng
* @date 2024-12-02
* description:入群申请表
*/
@Data
public class JoinGroupApplyVo  extends BaseField {

    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "用户id")
    private Long userId;

    @ApiModelProperty(value = "群id")
    private Long groupId;

    @ApiModelProperty(value = "昵称")
    private String nickname;

    @ApiModelProperty(value = "状态：0:待审核，1:审核通过，2:审核拒绝")
    private Integer appStatus;

    @ApiModelProperty(value = "性别：0:女，1:男")
    private Integer sex;

    private List<Long> delIds;  //批量删除ids

    public static JoinGroupApplyVo invertToVo(JoinGroupApply joinGroupApply){
        JoinGroupApplyVo vo = new JoinGroupApplyVo();
        BaseField.invert(joinGroupApply, vo);
        vo.setId(joinGroupApply.getId());
        vo.setUserId(joinGroupApply.getUserId());
        vo.setGroupId(joinGroupApply.getGroupId());
        vo.setNickname(joinGroupApply.getNickname());
        vo.setAppStatus(joinGroupApply.getAppStatus());
        vo.setSex(joinGroupApply.getSex());
        return vo;
    }
}
